package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.entity.OrderDetail;
import com.itheima.entity.Orders;
import com.itheima.entity.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface OrderService extends IService<Orders> {
//    用户下单
    @Transactional
    void submit(Orders orders);

//查询订单明细
    List<OrderDetail> getOrderDetailListByOrderId(Long orderId);
}
